package com.power.vo;

import com.power.domain.MemberAddr;
import com.power.model.ShopOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description 订单确认页面对象
 * @Author dingchunlin
 * @Date 2024/07/25 10:49
 * @Version 1.0.0
 */
@ApiModel(value = "订单确认页面对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderVo {


    @ApiModelProperty(value = "会员收货地址对象")
    private MemberAddr memberAddr;

    @ApiModelProperty(value = "订单店铺对象集合")
    private List<ShopOrder> shopCartOrders;

    @ApiModelProperty(value = "商品总数量")
    private Integer totalCount;

    @ApiModelProperty(value = "合计|订单总额")
    private BigDecimal total = BigDecimal.ZERO;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "运费")
    private BigDecimal transfee = BigDecimal.ZERO;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal shopReduce = BigDecimal.ZERO;

    @ApiModelProperty(value = "小计")
    private BigDecimal actualTotal = BigDecimal.ZERO;
}
